package org.child_motivation.presentation.control.util;

import no.kantega.publishing.security.SecuritySession;
import no.kantega.publishing.security.data.User;

import javax.servlet.http.HttpServletRequest;

public class ControllerHelper {

    public static User getUserFromRequest(HttpServletRequest request){
        SecuritySession securitySession = SecuritySession.getInstance(request);
        return securitySession.getUser();
    }
}
